#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main(){

int a = 1, b, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0;
string word = "";
string longest = "";
string input = "";
getline (cin , input);
input = input + ' ';
for (int b=0; b<input.size(); b++){
  if (input[b] != ' '){
    word += input[b];
    if (input[b] >= 'a' and input[b] <= 'z' or input[b] >= 'A' and input[b] <= 'Z'){
      c += 1;
    }
    if (input[b] == '-' and f == 0){
      g += 1;
      f += 1;
    }
  }
  else{
    c += 1;
    if (word[0] >= 'A' and word[0] <= 'Z'){
      d += 1;
    }
    if (c != 0){
      e += 1;
    }
    if (word.size() <= 3){
      h += 1;
    }
    if (word.size() > longest.size()){
      longest = word;
    }
    word = "";
    c = 0;
    f = 0;
  }
  
}
if (c <= 1){
  cout << "malo";
}
else{
  cout << "kolichestvo " << c << endl;
  cout << "zaglavnie " << d << endl;
  cout << "latynskie " << e << endl;
  cout << "<3 "<< h << endl;
  cout << "defiz '-' " << g << endl;
  cout << "dlinnoe slovo - "<< longest << endl;
  cout << "kol-vo bukv "<< longest.size();
    }
